import time

class measure:
	def __init__(self, m):
		self.m = m
		self.n0 = self.m.parameters.n
		self.start = time.time()
	
	def timeit(self):
		delta_n = self.m.parameters.n - self.n0
		delta_t = time.time() - self.start
		return delta_n / delta_t